import request from '@/utils/request'

// 查询九号-车辆信息列表
export function listVehicles(query) {
    return request({
        url: '/nbot/vehicles/list',
        method: 'get',
        params: query
    })
}

// 查询九号-车辆信息详细
export function getVehicles(id) {
    return request({
        url: '/nbot/vehicles/' + id,
        method: 'get'
    })
}

// 新增九号-车辆信息
export function addVehicles(data) {
    return request({
        url: '/nbot/vehicles',
        method: 'post',
        data: data
    })
}

// 修改九号-车辆信息
export function updateVehicles(data) {
    return request({
        url: '/nbot/vehicles',
        method: 'put',
        data: data
    })
}

// 删除九号-车辆信息
export function delVehicles(id) {
    return request({
        url: '/nbot/vehicles/' + id,
        method: 'delete'
    })
}
